package org.jeecg.modules.business.enums;

/**
 * @author xuzhijie
 * @description
 * @data 2023/7/31 10:28
 */
public enum TeamEnum {
    GROUP(1,"团"),
    UNITE(2,"联");

    Integer key;

    String title;

    TeamEnum(Integer key, String title){
        this.key = key;
        this.title = title;
    }
    public Integer getKey() {
        return key;
    }

    public String getTitle() {
        return title;
    }

    public static TeamEnum val(Integer key){
        for(TeamEnum team: values()){
            if(team.key .equals(key)){
                return team;
            }
        }
        return null;
    }
}
